* content.
*
* @param Content|null|bool|string $content
- * @return string The editable text form of the content.
+ * @return string|false|null The editable text form of the content.
*
* @throws MWException If $content is not an instance of TextContent and
* $this->allowNonTextContent is not true.
*
* @param array $cprefs Client's acceptable type list
* @param array $sprefs Server's offered types
- * @return string
+ * @return string|null
*
* @todo FIXME: Doesn't handle params like 'text/plain; charset=UTF-8'
* XXX: generalize to negotiate other stuff
+ * @todo The function appears unused. Is it worth to keep?
*/
function wfNegotiateType( $cprefs, $sprefs ) {
$combine = [];
*
* @param string $name
* @param array|null $default Option default (or null)
- * @return array Array of ints
+ * @return int[]|null
*/
public function getIntArray( $name, $default = null ) {
$val = $this->getArray( $name, $default );
'editchangetags' => 'EditTags',
];
+ /**
+ * @inheritDoc
+ */
public function getName() {
$request = $this->getRequest();
$actionName = $request->getVal( 'action', 'view' );
* @param string $name
* @return QueryPage
*/
- private function getSpecialPage( $name ) {
+ private function getSpecialPage( $name ) : QueryPage {
$qp = $this->specialPageFactory->getPage( $name );
if ( !$qp ) {
self::dieDebug(
* @ingroup SpecialPage
*/
class WikiImporter {
- private $reader = null;
+ /** @var XMLReader */
+ private $reader;
private $foreignNamespaces = null;
private $mLogItemCallback, $mUploadCallback, $mRevisionCallback, $mPageCallback;
private $mSiteInfoCallback, $mPageOutCallback;
* @param Parser $parser
* @param Title $title
* @param string $vary ParserOuput vary-* flag
- * @return Revision
+ * @return Revision|null
* @since 1.23
*/
private static function getCachedRevisionObject( $parser, $title, $vary ) {
*
* @param string|bool $pageName Page name or false (default: false)
*
- * @return string
+ * @return string|bool|null
*/
public function getPageUrl( $pageName = false ) {
$url = $this->getLinkPath();
*
* @param bool|string $pageName
*
- * @return string|bool
+ * @return string|bool|null
*/
public function getPageUrl( $pageName = false ) {
$url = $this->getLinkPath();